package com.h3c.web.support.console;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang3.tuple.Pair;

import com.h3c.dal.entity.query.CasssoOrganizationUnitQuery;
import com.h3c.dal.entity.query.CasssoUserQuery;

public interface OrgSupport {
	/**
	 * @Desc: 组装用户查询的example
	 * @param request
	 * @return
	 * @throws Exception
	 * @return: CasssoUserDOExample
	 */
	public Pair<CasssoUserQuery, CasssoUserQuery.Criteria> generateUserQuery(HttpServletRequest request)
			throws Exception;
	/**
	 * @Desc: 组装example
	 * @param request
	 * @return
	 * @throws Exception
	 * @return: CasssoOrganizationUnitDOExample
	 */
	public Pair<CasssoOrganizationUnitQuery, CasssoOrganizationUnitQuery.Criteria> generateOrgQuery(
			HttpServletRequest request) throws Exception;
}
